@echo off

set argDate=%1

rem 取时间 token 取得数组中index，1开始；delim =后，哪些是分隔符；

if "%argDate%"=="" For /f "tokens=1 delims= " %%a in ('date /t') do ( set argDate=%%a)
set Year=%argDate:~0,4%
set Month=%argDate:~5,2%
set Day=%argDate:~8,2%

if "%Month:~0,1%"=="0" set Mon=%Month:~1,1%
if "%Month:~0,1%"=="1" set Mon=%Month:~0,2%

if "%Mon%" == "10" set Mon=a
if "%Mon%" == "11" set Mon=b
if "%Mon%" == "12" set Mon=c

echo %Mon%%Day%

rem ls -l \\192.168.1.118\sh\%Year%\%Mon%月\自动\*.%Mon%%Day% 2>NUL | grep "jsmx" | wc -l
rem if ERRORLEVEL 1 echo "one"
rem  | grep "jsmx" | wc -l
